Skip to content

Comments

Covercrypt wrapper#167

Merged
Manuthor merged 23 commits intotbz/cleanupfrom
tbz/covercrypt-wrapper
Feb 13, 2026
Merged

Covercrypt wrapper#167
Manuthor merged 23 commits intotbz/cleanupfrom
tbz/covercrypt-wrapper

Conversation

@tbrezot
Copy link
Collaborator

@tbrezot tbrezot commented Jan 15, 2026

Implements a wrapper around covercrypt that can also be instantiated to a Pre-Quantum, Post-Quantum and Hybridized KEM and PKE.

In order to provide a uniform interface, enumerations are used for each one of the KEM encapsulation, encapsulation key and decapsulation key. The implementation of the wrapper KEM dispatches on those types to proceed with the correct underlying KEM primitive.

This allows having a uniform interface for all KEMs (and derive a PKE from it), but reduces the static safety as: concrete types of the keys and encapsulation is known at runtime an in case of the ABE member, master and user secret keys can only be told apart at runtime and the encapsulation key must be dynamically loaded with the correct access policy before proceeding with a KEM operation.

NOTE: as of now, only the KEM has been implemented (though the PKE from KEM derivation is generic), and tests are yet to be added.

@tbrezot tbrezot changed the title WIP: Covercrypt wrapper Covercrypt wrapper Jan 16, 2026
@Manuthor Manuthor merged commit dce7531 into tbz/cleanup Feb 13, 2026
3 checks passed
@Manuthor Manuthor deleted the tbz/covercrypt-wrapper branch February 13, 2026 15:11
Manuthor added a commit that referenced this pull request Feb 13, 2026
* cleanup some code

* serialization review following CryptoCore improvements

* review imports

* fix tests

* fix clippy

* add an enumeration member to the security-status enumeration

* add quantum encapsulations and primitive encapsulation/decapsulation

* adding the possibility to select quantum encapsulations

* correct spelling (quantic -> quantum)

* use full names

* remove unused take_latest from revision_map

* add correctness check

* correct doc

* share more code across partial/full decapsulations

* use CryptoCore version

* fix Cargo clippy

* remove a clone and fix a clippy lint

* fix formatting

* renamings

* fix comment

* feat: Covercrypt wrapper (#167)

* restructure modules

* WIP: implement wrapper around Covercrypt

* use crypto_core providers

* fix lack of ZeroizeOnDrop on MlKem implementation

* fix: add ZeroizeOnDrop for abe::DKey

* add test for the ABE variant of the ConfigurableKEM

* revert naming breaking change

* revert module-tree breaking change

* revert EncryptionHint-member breaking change

* fix: upgrade CryptoCore

* add hybridized implementation

* enforce KEM semantics across `ConfigurableKEM` variants

* upgrade CryptoCore, use OpenSSL provider for P256 and remove base

* cleanup lib.rs

* expose MLKEM

* derive Debug and Clone for MlKem implementations

* implement Serializable for AccessPolicy

* move the configurable KEM implem back to the CoverCrypt repository

* add tag to discriminate USK vs MSK

* improve generic implementation

* implement Serializable for configurable-KEM objects

* chore: update crypt_core to develop

* expose constructor for configurable KEM objects

---------

Co-authored-by: Manuthor <manu.coste@gmail.com>

---------

Co-authored-by: Manuthor <manu.coste@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants